package com.future.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zlb
 * @date 2022/4/25 21:54
 */
@ApiModel("司机个人信息实体")
@TableName("driver_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Driver implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer uid;

    private String name;

    private String username;

    private String password;

    /**
     * 头像图片路径
     */
    private String avatar;

    private String phone;

    private String deviceUid;

    private Boolean isWarn;

    private Boolean isMonitoring;

    private Boolean isTurn;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.DEFAULT)
    private String operator;
}
